<form action="{:url()}" method="post" class="form_single">
    <div class="box">
      <div class="box-body">
        <div class="row">
          <div class="col-md-6">
            <div class="form-group">
              <label>员工姓名</label>
              <input class="form-control" name="name" placeholder="请输入员工姓名" value="{$info['name']|default=''}" type="text">
            </div>
          </div>
            
          <div class="col-md-6">
            <div class="form-group">
              <label>性别</label>
              <select name="sex" class="form-control">
                <option value="0"{notempty name='info'} {if condition="$info['sex'] eq 0"}
                selected="selected" {/if}{/notempty}>女</option>
                <option value="1"{notempty name='info'} {if condition="$info['sex'] eq 1"}
                selected="selected" {/if}{/notempty}>男</option>
              </select>
            </div>
          </div> 
            
          <div class="col-md-6">
            <div class="form-group">
              <label>联系方式</label>
          
              <input class="form-control" name="phone" placeholder="请输入联系方式" value="{$info['phone']|default=''}" type="text">
            </div>
          </div>
 
            <div class="col-md-6">
              <div class="form-group">
                <label>图片1</label>
                {assign name="pic" value="$info.pic|default='0'" /}
                {:widget('file/index',['name' => 'pic', 'value' => $pic, 'type' => 'img'])}
              </div>
            </div>

            <div class="col-md-6">
            <div class="form-group">
                <label>个人介绍</label> 
                <textarea class="form-control" name="intro" rows="3" placeholder="请输入个人介绍">{$info['intro']|default=''}</textarea>
            </div>
          </div>

          <div class="col-md-6">
            <div class="form-group">
                <label>附件</label>
                <span class="">（可下载附件）</span>
                <br/>
                {assign name="file_id" value="$info.file_id|default='0'" /}
                {:widget('file/index', ['name' => 'file_id', 'value' => $file_id, 'type' => 'file'])}
            </div>
          </div>



          </div>
        </div>
        
      <div class="box-footer">
          
        <input type="hidden" name="id" value="{$info['id']|default='0'}"/>
        
        {include file="layout/edit_btn_group"/}
      </div>
        
      </div>

</form>